package com.hs;


import org.apache.ibatis.session.SqlSessionFactory;
import org.junit.Test;

import javax.annotation.Resource;
import java.util.Date;
/**
 * @author ：杨晓尚
 * @date ：Created in 2020/11/21 9:11
 * @description：启动
 * @modified By：
 * @version: $
 */
public class TestMybatis {
    @Resource
    private SqlSessionFactory sqlSessionFactory;

    @Test
    public void showDefaultCacheConfiguration() {
        System.out.println("一级缓存范围: " + sqlSessionFactory.getConfiguration().getLocalCacheScope());
        System.out.println("二级缓存是否被启用: " + sqlSessionFactory.getConfiguration().isCacheEnabled());
    }
}

